#[Member]

ETCD_NAME="{{ etcdname }}"
ETCD_DATA_DIR="{{ ETCD_DATA_DIR }}"
ETCD_LISTEN_PEER_URLS="https://{{ inventory_hostname }}:2380"
ETCD_LISTEN_CLIENT_URLS="https://{{ inventory_hostname }}:2379"


#[Clustering]
ETCD_INITIAL_ADVERTISE_PEER_URLS="https://{{ inventory_hostname }}:2380"
ETCD_ADVERTISE_CLIENT_URLS="https://{{ inventory_hostname }}:2379"
ETCD_INITIAL_CLUSTER="{% for item in groups['etcd'] -%}
    {{ hostvars[item].etcdname }}=https://{{ item }}:2380{% if not loop.last %},{% endif %}
  {%- endfor %}"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster"
ETCD_INITIAL_CLUSTER_STATE="new"
